package com.qfedu.smart_community.entity;

import java.io.Serializable;

/**
 * 
 * @TableName room_meter_pay
 */
public class RoomMeterPay implements Serializable {
    /**
     * 房间号
     */
    private Integer roomId;

    /**
     * 表计类别id
     */
    private Integer meterTypeId;

    /**
     * 收费项目id
     */
    private Integer payItemId;

    private static final long serialVersionUID = 1L;

    /**
     * 房间号
     */
    public Integer getRoomId() {
        return roomId;
    }

    /**
     * 房间号
     */
    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    /**
     * 表计类别id
     */
    public Integer getMeterTypeId() {
        return meterTypeId;
    }

    /**
     * 表计类别id
     */
    public void setMeterTypeId(Integer meterTypeId) {
        this.meterTypeId = meterTypeId;
    }

    /**
     * 收费项目id
     */
    public Integer getPayItemId() {
        return payItemId;
    }

    /**
     * 收费项目id
     */
    public void setPayItemId(Integer payItemId) {
        this.payItemId = payItemId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RoomMeterPay other = (RoomMeterPay) that;
        return (this.getRoomId() == null ? other.getRoomId() == null : this.getRoomId().equals(other.getRoomId()))
            && (this.getMeterTypeId() == null ? other.getMeterTypeId() == null : this.getMeterTypeId().equals(other.getMeterTypeId()))
            && (this.getPayItemId() == null ? other.getPayItemId() == null : this.getPayItemId().equals(other.getPayItemId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoomId() == null) ? 0 : getRoomId().hashCode());
        result = prime * result + ((getMeterTypeId() == null) ? 0 : getMeterTypeId().hashCode());
        result = prime * result + ((getPayItemId() == null) ? 0 : getPayItemId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roomId=").append(roomId);
        sb.append(", meterTypeId=").append(meterTypeId);
        sb.append(", payItemId=").append(payItemId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}